/**
 * Created by Aber on 17/3/22.
 */
define('intro',function () {

})
// 加载模块
module.exports = function(ngModule) {
    require('./intro.scss');
    ngModule.directive('intro',function () {
        return {
            restrict: 'E',//元素(element)
            scope: {},
            replace: true,
            template: require('./intro.html'),//模板
            controllerAs: 'intro',// <=> $scope.vm = {greeting: '你好，我是卡哥'}
            controller: function () {
            }
        }
    });//定义指令，对应页面中的<hello-world></hello-world>
    require(['intro'], function (my){
        var $ = require('jquery');
        $(function () {
          $("#tologin").click(function () {
              location.href=window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '')+"/webpack/src/pages/login/login.html"
          })
        })
    });
}